#ifndef QMODELVIEWERR_H
#define QMODELVIEWERR_H

#include <QtGui/QMainWindow>
#include "ui_QModelViewer.h"
#include "ModelWidget.h"
#include "FolderViewer.h"
#include "ModelInfo.h"
class QModelViewer : public QMainWindow
{
	Q_OBJECT

public:
	QModelViewer(QWidget *parent = 0, Qt::WFlags flags = 0);
	~QModelViewer();
	void loadEntity(const QString& meshName);
	void setMaterialNames(const QStringList& nameList);
	void setSkeletonName(const QString& skeletonName);
	void setAnimations(const QStringList& aniNameList);
	void playAnimation(const QString& aniName, bool isLoop, Ogre::Real speed);
private:
	Ui::QModelViewerClass ui;
	ModelWidget* m_pModelWidget;
	FolderViewer* m_pFolderViewer;
	ModelInfo* m_pModelInfo;
};

#endif // QMODELVIEWERR_H
